package lmscript.postscript.syntax;

import lmscript.postscript.syntax.stack.OperandStack;

public class PSComment extends PSSimple {

	private String comment;

	public PSComment(String comment) {
		super("comment", PSObject.LITERAL);
		this.comment = comment;
	}

	@Override
	public boolean execute(OperandStack os) {
		return false;
	}

	public String getString() {
		return this.comment;
	}

	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj != null && obj instanceof PSComment) {
			return ((PSComment) obj).comment.equals(this.comment);
		}
		return false;
	}

	public int hashCode() {
		return this.comment.hashCode();
	}
}
